import 'package:json_annotation/json_annotation.dart'; 
  
part 'socket_model.g.dart';


@JsonSerializable()
  class SocketModel extends Object {

  @JsonKey(name: 'code')
  int code;

  @JsonKey(name: 'msg')
  String msg;

  @JsonKey(name: 'data')
  Data data;

  SocketModel(this.code,this.msg,this.data,);

  factory SocketModel.fromJson(Map<String, dynamic> srcJson) => _$SocketModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$SocketModelToJson(this);

}

  
@JsonSerializable()
  class Data extends Object {

  @JsonKey(name: 'lists')
  List<Lists> lists;

  @JsonKey(name: 'apiType')
  int apiType;

  @JsonKey(name: 'myUid')
  int myUid;

  @JsonKey(name: 'fd')
  int fd;

  Data(this.lists,this.apiType,this.myUid,this.fd,);

  factory Data.fromJson(Map<String, dynamic> srcJson) => _$DataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$DataToJson(this);

}

  
@JsonSerializable()
  class Lists extends Object {

  @JsonKey(name: 'text')
  String text;

  @JsonKey(name: 'type')
  int type;

  @JsonKey(name: 'addTime')
  int addTime;

  @JsonKey(name: 'sendUid')
  int sendUid;

  @JsonKey(name: 'receiveUid')
  int receiveUid;

  @JsonKey(name: 'id')
  int id;

  Lists(this.text,this.type,this.addTime,this.sendUid,this.receiveUid,this.id,);

  factory Lists.fromJson(Map<String, dynamic> srcJson) => _$ListsFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ListsToJson(this);

}

  
